package Model.BusinessRules;

public class AttRange implements IRuleTypes{


	private int constrainCount = 2; 
	
	@Override
	public int getConstrainCount() {
		return constrainCount;
	}
	
	public String[] parseOperation(String operation){
		String[] returnthis = null;
		operation = InvertOperation.invert(operation);
		if (operation.equals("Between")){
			returnthis = new String[2];
			returnthis[0] = ">";
			returnthis[1] = "<";
		} 
		else if(operation.equals("Not Between")){
			returnthis = new String[2];
			returnthis[0] = "<";
			returnthis[1] = ">";
		} else {
			returnthis = new String[1];
			returnthis[0] = operation;
		}
		return returnthis;
	}

	
	
}
